import java.io.*;

import static java.lang.String.format;

/**
 * Created by balau on 3/6/14.
 * this is for user IO
 */
public class UserIO {

    public UserIO() {
    }

    //this is not tested, because I don't know how to test this.
    public int getUserInput() throws IOException {

        InputStreamReader inputStreamReader = new InputStreamReader(System.in);
        BufferedReader bufferedReader= new BufferedReader(inputStreamReader);
        return Integer.parseInt(bufferedReader.readLine())-1;
    }

    public static String askUserForGuess(int userNumber) {
        return format("User %d, please make a move.  Enter a number between 1 and 9: ",userNumber);
    }
}
